<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{meta}
<title>{pagetitle} {config.seotitle} - {config.albumname} - Powered by Discuz!NT</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
<!-- 调用样式表 -->
<link rel="stylesheet" href="templates/{templatepath}/space/space.css" type="text/css" media="all"  />
{link}
<script type="text/javascript" src="javascript/template_report.js"></script>
<script type="text/javascript" src="javascript/template_utils.js"></script>
<script type="text/javascript" src="javascript/common.js"></script>
<script type="text/javascript" src="javascript/menu.js"></script>
<script type="text/javascript"> 
	var aspxrewrite = {config.aspxrewrite};
</script>
{script}
</head>

<body onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="container">
<%if {headerad}!=""%>
	<div id="ad_headerbanner">{headerad}</div>
<%/if%>
<div id="hd">
	<div class="wrap">
		<div class="head cl">
			<h2><a href="{forumpath}index.aspx" title="Discuz!NT|BBS|论坛"><img src="{imagedir}/logo.png" alt="Discuz!NT|BBS|论坛"/></a></h2>
			<%if {userid}==-1%>
            <%if {pagename}!="login.aspx"&&{pagename}!="register.aspx"%>
			<form onsubmit="if ($('ls_username').value == '' || $('ls_username').value == '用户名/Email') showWindow('login', '{rooturl}login.aspx');hideWindow('register');return" action="{rooturl}login.aspx?referer={pagename}" id="lsform" autocomplete="off" method="post">
				<div class="fastlg c1">
					<div class="y pns">
						<p>
							<label for="ls_username">帐号</label> <input type="text" tabindex="901" value="用户名/Email" id="ls_username" name="username" class="txt" onblur="if(this.value == '') this.value = '用户名/Email';" onfocus="if(this.value == '用户名/Email') this.value = '';"/><a href="{forumpath}register.aspx" onClick="showWindow('register', '{rooturl}register.aspx');hideWindow('login');" style="margin-left: 7px;" class="xg2">注册</a>							
						</p>
						<p>
							<label for="ls_password">密码</label> <input type="password" onfocus="lsShowmore();innerVcode();" tabindex="902" autocomplete="off" id="ls_password" name="password"  class="txt"/>
							&nbsp;<input type=submit style="width:0px;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;display:none;"/><button class="pn" type="submit"><span>登录</span></button>
						</p>
					</div>
				</div>
                <div id="ls_more" style="position:absolute;display:none;">
                <h3 class="cl"><em class="y"><a href="###" class="flbc" title="关闭" onclick="closeIsMore();return false;">关闭</a></em>安全选项</h3>
                <%if {isLoginCode}%>
                <div id="vcode_header"></div>
                <script type="text/javascript" reload="1">
	                if (typeof vcodeimgid == 'undefined'){
	                    var vcodeimgid = 1;
	                }
	                else
	                    vcodeimgid++;
	                function innerVcode() {
	                    if ($('vcodetext1') == null) {
	                        $('vcode_header').innerHTML = '<input name="vcodetext" tabindex="903" size="20" onkeyup="changevcode(this.form, this.value);" class="txt" style="width:50px;" id="vcodetext' + vcodeimgid + '" value="" autocomplete="off"/>' +
                                                        '<span><a href="###" onclick="vcodeimg' + vcodeimgid + '.src=\'{rooturl}tools/VerifyImagePage.aspx?id={olid}&time=\' + Math.random();return false;" style="margin-left: 7px;">看不清</a></span>' + '<p style="margin:6px 0">输入下图中的字符</p>' +
	                                                    '<div  style="cursor: pointer;width: 124px; height: 44px;top:256px;z-index:10009;padding:0;" id="vcodetext' + vcodeimgid + '_menu" onmouseout="seccodefocus = 0" onmouseover="seccodefocus = 1"><img src="{rooturl}tools/VerifyImagePage.aspx?time={Processtime}" class="cursor" id="vcodeimg' + vcodeimgid + '" onclick="this.src=\'{rooturl}tools/VerifyImagePage.aspx?id={olid}&time=\' + Math.random();"/></div>';
	                        optionVcode();
                            }
                        }
                                            
	                 function changevcode(form, value){
		                if (!$('vcode')){
			                var vcode = document.createElement('input');
			                vcode.id = 'vcode';
			                vcode.name = 'vcode';
			                vcode.type = 'hidden';
			                vcode.value = value;
			                form.appendChild(vcode);
		                }else{
			                $('vcode').value = value;
		                }
	                }
                </script>
                <script type="text/javascript">
                    var secclick = new Array();
                    var seccodefocus = 0;
                    var optionVcode = function (id, type) {
                        id = vcodeimgid;
                        if ($('vcode')) {
                            $('vcode').parentNode.removeChild($('vcode'));
                        }

                        if (!secclick['vcodetext' + id]) {
                            if ($('vcodetext' + id) != null)
                                $('vcodetext' + id).value = '';
                            secclick['vcodetext' + id] = 1;
                            if (type)
                                $('vcodetext' + id + '_menu').style.top = parseInt($('vcodetext' + id + '_menu').style.top) - parseInt($('vcodetext' + id + '_menu').style.height) + 'px';
                        }
                        $('vcodetext' + id + '_menu').style.display = '';
                        $('vcodetext' + id).unselectable = 'off';
                        $('vcodeimg' + id).src = '{rooturl}tools/VerifyImagePage.aspx?id={olid}&time=' + Math.random();
                    }
                </script>
                <%else%>
                    <script type="text/javascript">
                        function innerVcode() {
                        }
                        function optionVcode() {
                        }
                    </script>
                <%/if%>
                <%if {config.secques}==1%>
			    <div id="floatlayout_login" class="pbm">
					<select style="width:156px;margin-bottom:8px;" id="question" name="question" selecti="5" name="question" onchange="displayAnswer();" tabindex="904">
						<option id="question" value="0" selected="selected">安全提问(未设置请忽略)</option>
						<option id="question" value="1">母亲的名字</option>
						<option id="question" value="2">爷爷的名字</option>
						<option id="question" value="3">父亲出生的城市</option>
						<option id="question" value="4">您其中一位老师的名字</option>
						<option id="question" value="5">您个人计算机的型号</option>
						<option id="question" value="6">您最喜欢的餐馆名称</option>
						<option id="question" value="7">驾驶执照的最后四位数字</option>
					</select>
					<input type="text" tabindex="905" class="txt" size="20" autocomplete="off" style="width:140px;display:none;"  id="answer" name="answer"/>
		        </div>
                <%/if%>
                <script type="text/javascript">
                    function closeIsMore() {
                        $('ls_more').style.display = 'none';
                    }
                    function displayAnswer() {
                        $('answer').style.display = '';
						$('answer').focus();
                    }
                </script>
				<div class="ptm cl" style="border-top:1px dashed #CDCDCD;">
					<a class="y xg2" href="{forumpath}getpassword.aspx" onclick="hideWindow('register');hideWindow('login');showWindow('getpassword', this.href);">找回密码</a>
					<label class="z" for="ls_cookietime"><input type="checkbox" tabindex="906" value="2592000" id="ls_cookietime" name="expires" checked="checked" tabindex="906">记住密码</label>
				</div>
            </div>
			</form>
            <%/if%>
			<%else%>
			<div id="um">
				<div class="avt y"><a alt="用户名称" target="_blank" href="{forumpath}usercp.aspx"><img src="{useravatar}" onerror="this.onerror=null;this.src='{imagedir}/noavatar_small.gif';" /></a></div>
				<p>
					<strong><a href="{forumpath}userinfo.aspx?userid={userid}" class="vwmy">{username}</a></strong><span class="xg1">在线</span><span class="pipe">|</span>
					<a id="pm_ntc" href="{forumpath}usercpinbox.aspx" title="<%if {oluserinfo.newpms}>0%>您有{oluserinfo.newpms}条新短消息<%else%>您没有新短消息<%/if%>">短消息</a><span class="pipe">|</span>
					<a href="{forumpath}usercpnotice.aspx?filter=all" title="<%if {oluserinfo.newnotices}>0%>您有{oluserinfo.newnotices}条新通知<%else%>您没有新通知<%/if%>">通知<%if {oluserinfo.newnotices}>0%>({oluserinfo.newnotices})<%/if%></a><span class="pipe">|</span>
					<a id="usercenter" class="drop" onmouseover="showMenu(this.id);" href="{forumpath}usercp.aspx">用户中心</a>
				<%if {config.Regstatus}==2||{config.Regstatus}==3%>
					<%if {userid}>0%>
					<span class="pipe">|</span><a href="{forumpath}invite.aspx">邀请</a>
					<%/if%>
				<%/if%>
					<%if {useradminid}==1%>
					<span class="pipe">|</span><a href="{forumpath}admin/index.aspx" target="_blank">系统设置</a>
					<%/if%>
					<span class="pipe">|</span><a href="{forumpath}logout.aspx?userkey={userkey}">退出</a>
				</p>
				{userinfotips}
			</div> 
			<%if {oluserinfo.newpms}>0%>
            <div id="pm_ntc_menu" class="g_up">
				<div class="mncr"></div>
				<div class="crly">
					<div style="clear:both;font-size:0;"></div>
					<span class="y"><a onclick="javascript:$('pm_ntc_menu').style.display='none';" href="javascript:;"><img src="{imagedir}/delete.gif" alt="关闭"/></a></span>
					<a href="{forumpath}usercpinbox.aspx">您有{oluserinfo.newpms}条新消息</a>
				</div>
            </div>
            <script type="text/javascript">setMenuPosition('pm_ntc', 'pm_ntc_menu', '43');</script>
            <%/if%>
			<%/if%>
		</div>
		<div id="menubar">
		<%if {userid}!=-1%>
			<a onMouseOver="showMenu(this.id, false);" href="javascript:void(0);" id="mymenu">我的中心</a>
            <div class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">
			<ul class="sel_my">
				<li><a href="{forumpath}mytopics.aspx">我的主题</a></li>
				<li><a href="{forumpath}myposts.aspx">我的帖子</a></li>
				<li><a href="{forumpath}search.aspx?posterid=current&type=digest&searchsubmit=1">我的精华</a></li>
				<li><a href="{forumpath}myattachment.aspx">我的附件</a></li>
				<li><a href="{forumpath}usercpsubscribe.aspx">我的收藏</a></li>
			<%if {config.Enablespace}==1%>
				<li class="myspace"><a href="{forumpath}space/">我的空间</a></li>
			<%/if%>
			<%if {config.Enablealbum}==1%>
				<li class="myalbum"><a href="{forumpath}showalbumlist.aspx?uid={userid}">我的相册</a></li>
			<%/if%>
            </ul>
            </div>
		<%/if%>
			<ul id="menu" class="cl">
				{mainnavigation}
			</ul>
		</div>
	</div>
</div>